package com.wchat.repository;

import com.wchat.dataobject.District;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.query.Param;

import java.util.List;

public   interface DistrictRepository extends JpaRepository<District,Integer> {

    List<District> findByCode(@Param( value = "code") String code);
}
